package com.bhs.sansonglogistics.dialog;

import android.content.Context;
import android.graphics.Color;

import androidx.annotation.NonNull;

import com.bhs.sansonglogistics.R;
import com.lxj.xpopup.core.BubbleAttachPopupView;
import com.lxj.xpopup.util.XPopupUtils;

/**
 * 更多功能菜单
 */
public class AttachMoreDialog extends BubbleAttachPopupView {

    public AttachMoreDialog(@NonNull Context context) {
        super(context);

    }

    @Override
    protected int getImplLayoutId() {
        return R.layout.dialog_attach_more;
    }

    @Override
    protected void onCreate() {
        super.onCreate();
        setBubbleBgColor(Color.WHITE);
        setBubbleShadowSize(XPopupUtils.dp2px(getContext(), 6));
        setBubbleShadowColor(Color.parseColor("#C5C5C5"));
        setArrowWidth(XPopupUtils.dp2px(getContext(), 8));
        setArrowHeight(XPopupUtils.dp2px(getContext(), 9));
//                                .setBubbleRadius(100)
        setArrowRadius(XPopupUtils.dp2px(getContext(), 2));
    }
}
